/**
 * @name 店铺管理
 */
import request from '@/utils/request'

// 获取授权店铺列表
export const getStoreList = data => {
  return request({
    url: '/h5/scriptApplication/selectAuthPage',
    method: 'post',
    data
  })
}

// 授权与取消授权
export const settingAuthStore = data => {
  return request({
    url: '/h5/scriptApplication/settingAuthStore',
    method: 'post',
    data
  })
}

// 获取权益包/优惠券可发放列表
export const selectCouponPage = data => {
  return request({
    url: '/h5/csproxy/coupon/selectCouponPage',
    method: 'post',
    data
  })
}

// 店铺发放优惠券
export const issueCouponToStoreList = data => {
  return request({
    url: '/h5/csproxy/coupon/issueCouponToStoreList',
    method: 'post',
    data
  })
}

// 店铺发放权益包
export const addBenefitPackageList = data => {
  return request({
    url: '/h5/csproxy/BenefitPackage/addBenefitPackageList',
    method: 'post',
    data
  })
}